{include file="public/head"/}
  <body>
    <div class="x-nav">
      <span class="layui-breadcrumb">
        <a href="">后台管理</a>
        <a href="">人员信息管理中心</a>
        <a><cite>人员管理</cite></a>
      </span>
      <a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right" href="javascript:location.replace(location.href);" title="刷新">
        <i class="layui-icon" style="line-height:30px">ဂ</i></a>
    </div>
    <div class="x-body">
      <div class="layui-row">
        <form class="layui-form layui-col-md12 x-so"  method="get" action="">
          <input type="text" name="community_name"  placeholder="小区名称" autocomplete="off" class="layui-input" value="{if isset($community_name)}{$community_name}{/if}">
          
          <button class="layui-btn"  lay-submit="" lay-filter="sreach"><i class="layui-icon">&#xe615;</i></button>
        </form>
      </div>
      <xblock>
         
        <span class="x-right" style="line-height:40px">共有数据： 条</span>
      </xblock>
      <table class="layui-table">
        <thead>
          <tr>
            <th>小区</th>
            <th>设备序列号</th>
            <th>设备名称</th>
            <th>操作</th>
          </tr>
        </thead>
        <tbody>
          {foreach $locklist as $lis}
          <tr>
           
            <td>{$lis.community_name}</td>
            <td>{$lis.devicekey}</td>
            <td>{$lis.lockname}</td>
            <td class="td-manage">
              <a title="编辑"  onclick="x_admin_show('编辑','{:url('Face/lock/lockEdit')}?id={$lis.id}',780,600)" href="javascript:;">
                <i class="layui-icon">&#xe642;</i>
              </a>    
            </td>
           
            </div>
          </tr>
          {/foreach}
        </tbody>
      </table>
      <div class="page">
        <div>
          {$locklist->render()}
        </div>
      </div>

    </div>
   
    <script>var _hmt = _hmt || []; (function() {
        var hm = document.createElement("script");
        hm.src = "https://hm.baidu.com/hm.js?b393d153aeb26b46e9431fabaf0f6190";
        var s = document.getElementsByTagName("script")[0];
        s.parentNode.insertBefore(hm, s);
      })();
    </script>
  </body>

</html>